
<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/jsp/message_digest_utils.jsp"/>

<html:html>

<HEAD><TITLE>Scalar Soft</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<script language='javascript'>
function saveProfile() {
    document.userProfileForm.submit();
}
</script>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor='#ffffff' leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>


<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff colSpan=6><IMG height=28
      src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>
    <TD vAlign=top noWrap colSpan=6>
	<img src=<%=chipTracContext%>/jsp/includes/images/top_curve.gif width=32 height=28></TD></TR>

  </TBODY>
  </TABLE><BR>
</TD>
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="80%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<center><span class="NArialW">ChipTrac Message Digest Utils</span></center>

<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>

<html:form name="messageDigestUtilsForm" type="com.scalar.chiptrack.MessageDigestUtilsForm" action="/messageDigestUtils">

<table border="0" width="80%" align='left'>

    <tr><td><chiptrack:info styleClass="NArialL"/></td></tr>
    <tr><td><chiptrack:errors styleClass="NArialL"/></td></tr>
    <tr><td><img height=20 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>

    <tr bgcolor='#993333'><td><font class='NArialL'><font color='#FFFFFF'>Generate Secret Key File</font></font></td></tr>
    <tr><td><img height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
    <tr><td bgcolor='#DEE1E2'>
        <font class='NArialL'>File Name:</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <html:text name='messageDigestUtilsForm' property='fileName' size='20' maxlength='100' styleClass='txfield'/>
    </td></tr>
    <tr><td bgcolor='#DEE1E2'>
        <font class='NArialL'>Location to store the file:</font>
        <html:text name='messageDigestUtilsForm' property='dirLocation' size='20' maxlength='100' styleClass='txfield'/>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <html:submit property='submitAction' value='Generate File' styleClass='NArialL'/>
    </td></tr>

    <tr><td><img height=30 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>

    <tr bgcolor='#993333'><td><font class='NArialL'><font color='#FFFFFF'>Get Message Digest</font></font></td></tr>
    <tr><td><img height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
    <tr><td bgcolor='#DEE1E2'>
        <font class='NArialL'>Secret Key File:</font>&nbsp;&nbsp;
        <html:file name='messageDigestUtilsForm' property='secretKeyFile' size='20' maxlength='100' styleClass='txfield'/>
    </td></tr>
    <tr><td bgcolor='#DEE1E2'>
        <font class='NArialL'>Input Text:</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <html:text name='messageDigestUtilsForm' property='inputText' size='20' maxlength='100' styleClass='txfield'/>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <html:submit property='submitAction' value='Get Message Digest' styleClass='NArialL'/>
    </td></tr>
    <tr><td><img height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
    <tr><td bgcolor='#DEE1E2'>
        <font class='NArialL'>Result Bytes:</font>
        <html:text name='messageDigestUtilsForm' property='resultBytes' size='100' maxlength='100' disabled='true' styleClass='txfield'/>
    </td></tr>

</table>

</html:form>

<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<%@ include file="/jsp/includes/footer.jsp" %>

</BODY>

</html:html>